package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 * @author lvliuhao 
 * @version 创建时间：2018年8月16日 下午2:42:32 
 * 类说明 
 */
public class PsCLaveDtlVwPrimary implements Serializable {

	private static final long serialVersionUID = -5792871001439323546L;
	
	private String cLeaveType;
	private Date dateDay;
	private BigDecimal emplRcd;
	private String emplid;
	public String getcLeaveType() {
		return cLeaveType;
	}
	public void setcLeaveType(String cLeaveType) {
		this.cLeaveType = cLeaveType;
	}
	public Date getDateDay() {
		return dateDay;
	}
	public void setDateDay(Date dateDay) {
		this.dateDay = dateDay;
	}
	public BigDecimal getEmplRcd() {
		return emplRcd;
	}
	public void setEmplRcd(BigDecimal emplRcd) {
		this.emplRcd = emplRcd;
	}
	public String getEmplid() {
		return emplid;
	}
	public void setEmplid(String emplid) {
		this.emplid = emplid;
	}
	
	
	
	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((cLeaveType == null) ? 0 : cLeaveType.hashCode());
		result = prime * result + ((dateDay == null) ? 0 : dateDay.hashCode());
		result = prime * result + ((emplRcd == null) ? 0 : emplRcd.hashCode());
		result = prime * result + ((emplid == null) ? 0 : emplid.hashCode());
		return result;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PsCLaveDtlVwPrimary other = (PsCLaveDtlVwPrimary) obj;
		if (cLeaveType == null) {
			if (other.cLeaveType != null)
				return false;
		} else if (!cLeaveType.equals(other.cLeaveType))
			return false;
		if (dateDay == null) {
			if (other.dateDay != null)
				return false;
		} else if (!dateDay.equals(other.dateDay))
			return false;
		if (emplRcd == null) {
			if (other.emplRcd != null)
				return false;
		} else if (!emplRcd.equals(other.emplRcd))
			return false;
		if (emplid == null) {
			if (other.emplid != null)
				return false;
		} else if (!emplid.equals(other.emplid))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
 